import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./plugins/iview.js";
import BaiduMap from "vue-baidu-map";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import VueAxios from "vue-axios";
import moment from "moment";
import axios from "axios";
Vue.prototype.$moment = moment;
moment.locale("zh-CN");
Vue.use(ElementUI).use(VueAxios, axios);

//高德地图
import AmapVue from '@amap/amap-vue';

AmapVue.config.version = '2.0'; // 默认2.0，这里可以不修改
AmapVue.config.key = 'd67b10b805e4495069c554f2f3799d78';
AmapVue.config.plugins = [
  'AMap.ToolBar',
  'AMap.MoveAnimation',
  // 在此配置你需要预加载的插件，如果不配置，在使用到的时候会自动异步加载
];
Vue.use(AmapVue);

import echarts from 'echarts';
import china from 'echarts/map/json/china.json'
echarts.registerMap('china', china)
import HighchartsVue from 'highcharts-vue'
Vue.use(HighchartsVue)
import Highcharts from 'highcharts';
import variablePieModule from 'highcharts/modules/variable-pie'; // 引入 "variablepie" 模块
variablePieModule(Highcharts);
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false;
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: "IZoh4RXOILm1YAKGN6lypW9KKk3Gi3hx",
});
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
